package com.ruoyi.college.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级信息对象 t_class
 * 
 * @author ruoyi
 * @date 2025-08-25
 */
public class Class extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级ID */
    private Long classId;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 年级 */
    @Excel(name = "年级")
    private Integer grade;

    /** 所属院系ID */
    //@Excel(name = "所属院系ID")
    private Integer collegeId;

    @Excel(name = "所属院系")
    private String collegeName;

    /** 专业ID */
    //@Excel(name = "专业ID")
    private Integer majorId;

    @Excel(name = "专业")
    private String majorName;

    /** 学生人数 */
    @Excel(name = "学生人数")
    private Long studentCount;

    /** 是否有效 */
    @Excel(name = "是否有效")
    private Integer isActive;

    public void setClassId(Long classId) 
    {
        this.classId = classId;
    }

    public Long getClassId() 
    {
        return classId;
    }

    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }

    public void setGrade(Integer grade) 
    {
        this.grade = grade;
    }

    public Integer getGrade() 
    {
        return grade;
    }

    public void setCollegeId(Integer collegeId)
    {
        this.collegeId = collegeId;
    }

    public Integer getCollegeId()
    {
        return collegeId;
    }

    public void setMajorId(Integer majorId) 
    {
        this.majorId = majorId;
    }

    public Integer getMajorId() 
    {
        return majorId;
    }

    public void setStudentCount(Long studentCount) 
    {
        this.studentCount = studentCount;
    }

    public Long getStudentCount() 
    {
        return studentCount;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    public String getCollegeName() {
        return collegeName;
    }

    public void setCollegeName(String collegeName) {
        this.collegeName = collegeName;
    }

    public String getMajorName() {
        return majorName;
    }

    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("classId", getClassId())
            .append("className", getClassName())
            .append("grade", getGrade())
            .append("collegeId", getCollegeId())
            .append("majorId", getMajorId())
            .append("studentCount", getStudentCount())
            .append("isActive", getIsActive())
            .append("createTime", getCreateTime())
            .toString();
    }
}
